@import "../common/reset.scss";

body{
    font: normal 12px "微软雅黑",Arial,sans-serif;
}
.header{
    margin: 5px 80px;
    height:42px;
    line-height: 40px;
    font-size: 12px;
    .header-l{
        display: flex;
        float:left;
        .logo{
            display: block;
            float: left;
            height: 42px;
            width: 181px;
            background: url(http://img.anta.cn/sources/NewEdition/2015newimages/logo.gif) no-repeat;
            background-size: 100%;
        }
        p{
            padding: 0 10px;
            a{
                padding: 0 10px;
            }
        }
    }
    .header-r{
        float:right;
        ul{
            display: flex;
            :nth-child(4){
                color:#dd0000;
            }
            li{
                margin:0 10px;
                a{
                    .icon{
                        display: inline-block;
                        width: 12px;
                        height: 15px;
                        margin-right: 5px;
                        margin-bottom: -2px;
                    }
                    .icon-shop{
                        background: url(http://img.anta.cn/sources/NewEdition/2015newimages/mui-global-iconfont.gif) no-repeat;
                    }
                    .icon-cart{
                        background: url(http://img.anta.cn/images/2015/index-icon.png) -45px -96px no-repeat;
                    }
                }
            }
        }
    }
}
.category{
    background: #000;
    height: 36px;
    line-height: 36px;
    padding: 0 80px;
    position: sticky;
    z-index:20;
    top:0px;
    .category-all a{
        font-size: 16px;
        float:left;
        display: block;
        width: 210px;
        background: #D6211A url(http://img.anta.cn/sources/NewEdition/2015newimages/public.3.4.gif) 0 -82px no-repeat;;
        color:#fff;
        text-indent: 24px;
    }
    .category-list{
        float:left;
        display: flex;
        color: #fff;
        a{
            font-size: 14px;
            display: block;
            width: 62px;
            padding: 0 7px;
            text-align: center;
            background: #231f20 url(http://img.anta.cn/sources/NewEdition/img/navBg.gif) no-repeat right 15px;
        }
        li:last-child a{
            height: 36px;
            width: 120px;
            background:#231f20 url(http://image03.anta.cn/sources/xiaochengxu/shuangdan/uni_logo.png) no-repeat 14px;
        }
    }
    .category-search{
        float: right;
        line-height:32px;
        position: relative;
        input{
            outline: none;
            border-radius: 5px;
            border:0;
            width:180px;
            height: 26px;
            padding: 0 10px;
        }
        .icon-search{
            position: absolute;
            display: block;
            height: 23px;
            width: 30px;
            background:url(http://img.anta.cn/images/2015/index-icon.png) -42px -164px no-repeat;
            border: none;
            cursor: pointer;
            right: 5px;
            top: 7px;
        }
    }
}
.sliderBar{
    position: fixed;
    top:52px;
    right: -280px;
    width: 315px;
    height: 100%;
    &.toggleClass{
        right: -280px;
    }
    z-index:20;
    background: #000;
    font: normal 12px "微软雅黑",Arial,sans-serif;
    .sliderBar-list{
        position: absolute;
        width: 35px;
        float: left;
        top:30%;
        >div{
            height: 35px;
            width: 35px;
            position: relative;
            left: 0;
            background: #000;
            margin: 4px 0;
            cursor: pointer;
            &:hover{
                background: #d00;
            }
        }
        .sliderBar-logo{
            height: 35px;
            width: 35px;
            position: absolute;
            top: 0;
            left: 0;
            background: url(http://img.anta.cn/images/2015/index-icon.png) no-repeat;
        }
        .user-login{
            .sliderBar-logo{
                background-position: 3px -224px;
            }
        }
        .user-cart{
            height: 90px;
            border-top: 1px solid #444;
            border-bottom: 1px solid #444;
            .sliderBar-logo{
                background-position: 4px -264px;
                top: 10px;
            }
            .user-cart-text{
                color: #FFF;
                position: absolute;
                top: 35px;
                left: 11px;
                width: 14px;
            }
        }
        .user-like{
            .sliderBar-logo{
                background-position: 3px -121px;
            }
        }
        .user-saw{
            .sliderBar-logo{
                background-position: 3px -291px;
            }
        }
        .user-tel{
            .sliderBar-logo{
                background-position: 3px -20px;
            }
        }
        .user-service{
            .sliderBar-logo{
                background-position: 3px -325px;
                background-color: #d00;
            }
        }
        .user-qrcode{
            .sliderBar-logo{
                background-position: 4px -155px;
            }
        }
        .gotoTop{
            margin-top:40px;
            .sliderBar-logo{
                background-position: -37px -196px;
            }
        }
    }
    .sliderBar-box{
        float: right;
        width: 280px;
        height:100%;
        background: #e6e6e6;
        position: relative;
        .cart-title{
            height: 35px;
            padding: 0 3px;
            line-height: 35px;
            font-size: 14px;
            color: grey;
            input{
                margin: 12px 8px 0 2px;
                float: left;
            }
            span{
                margin-left: 10px;
                float: left;
            }
            a{
                float: right;
            }
        }
        .cart-list{
            width:100%;
            table-layout:fixed;
            .cart-item{
                width:280px;
                height:80px;
                background: #fff;
                display: table-row;
                border-top:1px solid #808080;
                >td{
                    height:80px;
                    display: table-cell;
                    vertical-align:middle;
                    // input{
                    //     display: block;
                    // }
                    >a{
                        display: block;
                        >img{
                            display: block;
                            overflow: hidden;
                            height: 50px;
                            width: 50px;
                        }
                    }
                    .good-title{
                        display: block;
                        margin: 0 auto;
                        width: 54px;
                        padding-top: 10px;
                        line-height: 18px;
                    }
                    .goods-numb{
                        text-align: center;
                        display: flex;
                        justify-content: space-around;
                        align-items: center;
                        a{
                            font-size: 14px;
                            color: #666;
                            border: 1px #666 solid;
                            border-radius: 50%;
                            height: 13px;
                            width: 13px;
                            line-height: 11px;
                        }
                    }
                    .delete-goods{
                        display: block;
                        height: 13px;
                        width: 13px;
                        color: #666;
                        border: 1px #666 solid;
                        border-radius: 50%;
                        line-height: 11px;
                        float: right;
                        text-align: center;
                        margin-top: -20px;
                        font-size: 14px;
                        margin-right: 7px;
                    }
                    .goods-price{
                        padding-left: 15px;
                    }
                }
            }
        }
        .account-box{
            position: absolute;
            bottom: 52px;
            left: 0;
            width: 250px;
            height:80px;
            padding: 0 15px;
            background: #fff;
            .total{
                height: 26px;
                line-height: 26px;
                display: flex;
                justify-content: space-between;
                .total-count{
                    span{
                        margin:0 4px;
                    }
                }
                .total-price{
                    color:#d00;
                }
            }
            .goCartPage{
                display: block;
                height: 40px;
                line-height: 40px;
                background: #d00;
                text-align: center;
                color: #fff;
                font-size: 16px;
                margin-bottom: 15px;
            }
        }
    }
}
.wrap{
    width: 100%;
    height: auto;
    padding:0 80px;
    box-sizing: border-box;
    .classify{
        margin: 25px 0 15px;
        float: left;
        i{
            display: inline-block;
            margin-left: 3px;
            width: 15px;
            height: 15px;
            vertical-align: middle;
            background: url(http://img.anta.cn/images/2015/list_select_icon.png) no-repeat;
            background-position: 0 -104px;
        }
    }
    .selector{
        width:100%;
        line-height: 35px;
        clear: both;
        color:#666;
        .selector-head{
            height:35px;
            background-color: #f1f1f1;
            border: 1px solid #ddd;
            border-left: 0;
            border-right: 0;
            p{
                float: left;
                margin-left:10px;
                height:35px;
            }
            span{
                float: right;
                height:35px;
            }
        }

        ul{
            border-bottom: 4px solid #f1f1f1;
            li{
                height: 35px;
                line-height: 35px;
                position: relative;
                border-bottom: 1px solid #ddd;
                p{
                    width:70px; 
                    color:#000;
                    float: left;
                }
                i{
                    display: inline-block;
                    width: 100px;
                    >a{
                        color: #666;
                        &:hover{
                            color:red;
                        }
                    }
                }
            }
        }
    }
    .filter_list{
        clear: both;
        margin: 30px 0 10px 0;
        padding: 5px 10px;
        border: 1px solid #ddd;
        border-right: 0;
        border-left: 0;
        background-color: #f1f1f1;
        overflow: hidden;
        .fl{
            float: left;
        }
        .list_sort{
            display: flex;
            width:160px;
            a{
                padding: 3px 8px;
                float: left;
                border: 1px solid #ccc;
                color: #333;
                background: #fff;
                margin-right: -1px;
            }
        }
        .list_activity{
            display: flex;
            justify-content: space-around;
            align-items:center;
            padding: 3px 8px;
            background-color: #fff;
            border: 1px solid #ccc;
            color: #333;
            p{
                height:16px;
                line-height: 16px;
            }
            a{
                vertical-align: top;
            }
        }
        .list_search{
            width:180px;
            height:24px;
            margin-left: 20px;
            *{
                float: left;
            }
            input{
                width:108px;
                padding: 3px;
                height: 16px;
                line-height: 16px;
                color: #999;
                border: 1px solid #ccc;
                vertical-align: middle;
            }
            a{
                height:22px;
                line-height: 22px;
                text-align: center;
                vertical-align: middle;
                width: 52px;
                border: 1px solid #ccc;
                margin-left:-1px;
            }
        }
        .filter_page{
            float: right;
            width: 146px;
            height:27px;
            line-height: 27px;
            a{
                float: right;
                display: inline-block;
                margin-right: -1px;
                width: 45px;
                height: 25px;
                background: url(http://img.anta.cn/images/2015/list_select_icon.png) no-repeat #fff;
                border: 1px solid #ddd;
            }
            .toNext{
                background-position: center -98px;
            }
            .toPrev{
                background-position: center -170px;
            }
        }
    }
}

.listBox{
    width:1190px;
    margin:10px auto;
    min-height:900px;
    position: relative;
    .list{
        width:100%;
        .list-item{
            height: 372px;
            width: 238px;
            margin: 10px 0;
            border: 1px solid #fff;
            float: left;
            box-sizing: border-box;
            padding:8px;
            position: relative;
            &:hover{
                border-color: #e9e9e9;
                box-shadow: 0 0 2px 2px #f8f8f8;
                .buy{
                    display: block;
                }
            }
            >a{
                display: block;
                margin-bottom: 15px;
                img{
                    display: block;
                    width:220px;
                    height:220px; 
                }
            }
            p{
                height: 32px;
                width: 100%;
            }
            .item-price{
                margin: 10px 0;
                width: 100%;
                height: 22px;
                line-height: 22px;
                color: #e4393c;
                span{
                    font-size: 20px;
                }
            }
            .item-title{
                height: 18px;
                line-height: 18px;
                width: 100%;
                color: #666;
                font-size: 14px;
                white-space: nowrap;
                overflow: hidden;
                text-overflow: ellipsis;
            }
            .buy{
                display: none;
                position: absolute;
                bottom:0;
                left:0;
                width:100%;
                height:30px;
                .buyNow,.addCart{
                    height:30px;
                    line-height:30px;
                    text-align: center;
                    width:49%;
                    border:1px solid #e9e9e9;
                    display: flex;
                    justify-content: center;
                    &:hover{
                        border:1px solid #be0106;
                        color:#be0106;
                    }
                    >i{
                        margin-top: 5px;
                        margin-right: 3px;
                        height: 20px;
                        width: 20px;
                        background: url(http://img.anta.cn/images/2017/list/list-icons-1008.png) no-repeat;
                        background-size: 20px auto;
                    }
                }
                .addCart>i{
                    margin-left: 3px;
                    margin-right: 0px;
                    background-position: center -80px;
                }
                .buyNow{
                    float: left;
                    &:hover{
                        >i{background-position: center -20px;}
                    }
                }
                .addCart{
                    float: right;
                    &:hover{
                        >i{background-position: center -100px;}
                    }
                }
            }
        }
    }
    .pagination{
        position: absolute;
        bottom:30px;
        right:0;
        min-width:240px;
        height:30px;
        font-size: 14px;
        .page-item{
            float: left;
            width:30px;
            height:30px;
            line-height:30px;
            text-align: center;
            margin-left: 4px;
            font-weight: bold;
            border: 1px solid #d7d7d7;
        }
        .page-next{
            float: right;
            margin-right:20px;
            width:75px;
            height:30px;
            line-height:30px;
            text-align: center;
            margin-left: 4px;
            border: 1px solid #d7d7d7;
        }
        .page-select{
            float: right;
            display: flex;
            justify-content: space-around;
            width:164px;
            height:30px;
            line-height:30px;
            text-align: center;
            .whichPage{
                width:34px;
                text-align: center;
                border: 1px solid #d7d7d7;
                outline: none;
            }
        }
    }
}

.footer{
    border-top:2px solid #ccc;
    height:371px;
    width:100%;
    >ul{
        >li:first-child{
            margin-left: 89px;
        }
        >li:last-child{
            width: 150px;
        }
        >li{
            width: 214px;
            height:311px;
            float: left;
            >ul{
                .title{
                    margin-top: 38px;
                    line-height: 33px;
                    font-weight: bold;
                    font-size: 16px;
                }
                >li{
                    line-height: 30px;
                    font-size: 12px;
                }
            }
        }  
    }
    .connect{
        width:467px;
        height:242px;
        float: right;
        margin-top:30px;
        padding:8px 0 3px 100px;
        box-sizing: border-box;
        border-left: 2px solid #dbdbdb;
        h4{
            font-weight: bolder;
            font-size: 16px;
            line-height: 32px;
            color: #000;
        }
        p{
            margin: 5px 0 15px;
            display: block;
            height: 40px;
            width: 250px;
            background: url(http://img.anta.cn/sources/NewEdition/2015newimages/service-icon.png) -10px -15px no-repeat;
        }
        a{
            margin-bottom: 10px;
            display: block;
            height: 25px;
            width: 135px;
            border: 1px #bdbdbd solid;
            border-radius: 5px;
            i{
                display: inline-block;
                height: 25px;
                width: 37px;
                background: url(http://img.anta.cn/sources/NewEdition/2015newimages/service-icon.png) -7px -181px no-repeat;
            }
            span{
                display: inline-block;
                height: 25px;
                line-height: 25px;
                margin-left: 15px;
                color: #000;
                font-size: 14px;
                vertical-align: top;
            }
        }
        li{
            list-style: none;
            height: 90px;
            width: 90px;
            background: url(http://img.anta.cn/sources/NewEdition/2015newimages/qr-code.jpg) no-repeat;
        }
    }
    .bottom{
        height:60px;
        width:100%;
        background: #000;
        clear: both;
        padding:0 80px;
        box-sizing: border-box;
        .list1{
            float: left;
            span{
                display: block;
                float: left;
                color: #fff;
                line-height: 60px;
                font-size:12px;
            }
            .copyright{
                margin-right: 15px;
            }
            .company-name{
                margin-right: 20px;
            }
            .police-img{
                height: 33px;
                width: 34px;
                margin-top: 10px;
                margin-right: 20px;
                float:left;
            }
        }
        .list2{
            float: right;
            color:#fff;
            display: flex;
            line-height:60px;
            font-size: 12px;
            a{
                padding:0 5px;
            }
        }
    }
}